package com.hnguigu.health.houduan.zw.controller_zw;

import com.hnguigu.health.houduan.zw.service_zw.zwimple;
import com.hnguigu.health.pojo.TMemberDynamicinfo;
import com.hnguigu.health.pojo.TMemberMedicalhistory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("shi")
@CrossOrigin
public class zwss {
    @Autowired(required = false)
    zwimple s;
    @PostMapping
    public TMemberDynamicinfo km(@RequestBody Map<String,String> qq){
        String tid = qq.get("tid");
        TMemberDynamicinfo tm = new TMemberDynamicinfo();
        tm.setTMemberId(tid);
        TMemberDynamicinfo tmb = s.tmb(tm);
        System.out.println("321"+tmb);
        return tmb;
    }
}
